package cn.tansanqinger.controller.account;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import cn.tansanqinger.service.hymenu.IHyMenuServer;

@Controller
@RequestMapping("/account/user")
public class AccountMessageMeController {

	@Autowired
	private IHyMenuServer hyMenuServer;
	
	//@RequestMapping("/messageme")
	public ModelAndView list(ModelAndView mv, HttpServletRequest request) {
		mv = hyMenuServer.selectHyMenuAll(mv);
		mv.addObject("user", request.getSession().getAttribute("user"));
		mv.setViewName("account/message2");
		return mv;
	}
}
